﻿using Microsoft.AspNetCore.Mvc.Filters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyWeb.Extensions.ServiceExtensions.Filter
{
    /// <summary>
    /// 资源筛选器：用于缓存（全局资源）
    /// </summary>
    public class ResourceFilter : IResourceFilter
    {
        public void OnResourceExecuting(ResourceExecutingContext context)
        {
            Console.WriteLine("资源过滤之前");
        }
        public void OnResourceExecuted(ResourceExecutedContext context)
        {
            Console.WriteLine("资源过滤之后");
        }
    }
}
